﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EngineerWorkCondition.aspx.cs" Inherits="WXYW.EngineerWorkCondition" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <asp:Label ID="serviceStationLabel" runat="server" Text=""></asp:Label>工程师工作状态
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
                工程师列表
            </td>
            <td align="center">
                维修单列表
            </td>
        </tr>
        <tr>
            <td valign="top" style="width: 20%">
                <asp:ListBox ID="engineerListBox" runat="server" Width="100%" AutoPostBack="true"
                    OnSelectedIndexChanged="engineerListBox_SelectedIndexChanged"></asp:ListBox>
            </td>
            <td valign="top" style="width: 80%">
                <asp:GridView ID="applicationGridView" CssClass="tableList" BorderColor="#888888"
                    BorderWidth="1px" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                    PageSize="20" Width="100%" OnPageIndexChanging="applicationGridView_PageIndexChanging"
                    OnRowDataBound="applicationGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="流水号" DataField="RunningNumber">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle Wrap="False" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="RMA 单号">
                            <ItemTemplate>
                                <%#Eval("ApplicationCode")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="客户名称">
                            <ItemTemplate>
                                <%#Eval("User.FullName")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="申请日期">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ApplicationDateTime") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#Convert.ToDateTime(Eval("ApplicationDateTime")).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="派单日期">
                            <ItemTemplate>
                                <%#Convert.ToDateTime(Eval("DistributeDateTime")).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="数量">
                            <ItemTemplate>
                                <%#Eval("ProductCount")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" />
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text="待修"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
